package demo3;

public class Student {
    private String name;
    private int age;
    private String stuNum;

    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }
    public static String className;

    public static void studentAge(){
        System.out.println("直接调用方法");
    }

    public static void main(String[] args) {
        studentAge();
        className="ban";
    }
}

